package com.sdp.irrigation.view;

import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdp.core.bizc.annotation.ViewColumn;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class IrrigationEmpFieldView extends Model<IrrigationEmpFieldView>{

	private static final long serialVersionUID = 1L;
	
	/**
     * 项目名称
     */
	@ViewColumn("a.project_name")
    private String projectName;

    /**
     * 项目类型
     */
	@ViewColumn("a.project_type")
    private String projectType;

    
    /**
     * 项目所属省
     */
	@ViewColumn("a.project_province")
    private String projectProvince;

    /**
     * 项目所属市
     */
	@ViewColumn("a.project_city")
    private String projectCity;

    /**
     * 项目所属县
     */
    @ViewColumn("a.project_county")
    private String projectCounty;

    /**
     * 项目所属乡
     */
    @ViewColumn("a.project_township")
    private String projectTownship;
    
    /**
     *  内码
     */
	@ViewColumn("b.key_id")
    private String keyId;
    
    /**
     * 项目编号
     */
	@ViewColumn("b.project_no")
    private String projectNo;
	
	/**
     * 项目编号
     */
	@ViewColumn("b.field_no")
    private String fieldNo;
	
	/**
     * 人员编号
     */
	@ViewColumn("b.emp_no")
    private String empNo;
	
	/**
     * 记录生成时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ViewColumn("c.create_time")
    private LocalDateTime createTime;
	
	/**
     * 田块名称
     */
	@ViewColumn("c.field_name")
    private String fieldName;
}
